
import _openid from "../cache/_openid";
import _layer from "../common/_layer";
import _request from "../common/_request";

let lib_tiktok = {

  //
  openid: function (code) {
    let data = {}
    data.code = code
    return _request._get('/tiktok/openid', data);
  },

  //手机号
  phone: function (encryptedData, iv) {
    let data = {}
    data.encryptedData = encryptedData;
    data.openid = _openid.get();
    data.iv = iv
    return _request._get('/tiktok/phone', data);
  },
};


export default lib_tiktok;